<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>提交内容</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
	/*加载页面后执行*/
	window.onload = function() {
		//判断默认显示的信息类型
	};
</script>
</head>

<body>
	提交网站、新闻
	<br>
	<div>
		<s:form name="info" method="post" action="/info/add.action">
			<s:select label="信息类型" name="gleanInfo.type"
				list="#{'0':'给我留言','1':'提交网站', '2':'提交资讯'}" value="#parameters.type"></s:select>
			<s:textfield label="内容标题" name="gleanInfo.title"></s:textfield>
			<s:textarea label="详细内容" name="gleanInfo.content" cols="30" rows="8"></s:textarea>
			<s:textfield label="联系方式" name="gleanInfo.link"></s:textfield>
			<s:submit value="提交"></s:submit>
		</s:form>
		<s:debug></s:debug>

	</div>
</body>
</html>
